/**
 * Created by Administrator on 2015/5/13.
 */
var app =require('./config').globalApp;
var dao = require('./model/dao').PromiseDao
var model = require('./model/model').model

app.locals.config = {
    siteUrl: 'http://localhost:3000',
    title: 'Xyz327'
};

dao.find(model.WidgetModel, {}).then(function(doc){
    app.locals.widgets = doc;
});